<%@page import="com.antexpress.bean.Authentication"%>
<%@page import="com.antexpress.common.Const"%>
<%@page import="com.antexpress.pojo.Employee"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <%
        Employee emp = (Employee)session.getAttribute(Const.CURRENT_USER);
        if(emp == null){return;}
        
    %>
    <a href="index.jsp">Home</a>
    <a href="profile.jsp">Profile</a>
    <%
        if(Authentication.isHRAdmin(emp))
            out.println("<a href='employee.jsp'>Employee & Dept</a>");
        else if(Authentication.isEmployeeAdmin(emp))
            out.println("<a href='employee.jsp'>Employee</a>");
        if(Authentication.isExpressAdmin(emp))
            out.println("<a href='express.jsp'>Express</a>");
        if(Authentication.isExpressAreaAdmin(emp))
            out.println("<a href='courier.jsp'>Area & Courier</a>");
        else if(Authentication.isExpressCourierAdmin(emp))
            out.println("<a href='courier.jsp'>Courier</a>");
    %>
</html>
